import de.ruedigermoeller.fastcast.config.FCClusterConfig;
import de.ruedigermoeller.fastcast.service.fcdemon.FCStartScript;

import java.util.List;

/**
 * fcon -j StartExample
 * can be changed without recompile. No Generics support (janino)
 */
public class StartExample extends FCStartScript {

    @Override
    public void startCluster(String arg, List demons) {
        try {
            for ( int i = 0; i < 5; i++) {
                System.out.println("Starting node "+i);
                startNode(FCClusterConfig.class, arg);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}